package com.itmuch.contentcenter.feignclient.fallback;

import com.itmuch.contentcenter.domain.dto.messaging.UserAddBonusDTO;
import com.itmuch.contentcenter.domain.dto.user.UserDTO;
import com.itmuch.contentcenter.feignclient.UserCenterFeignClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.cloud.openfeign.SpringQueryMap;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Component
@Slf4j
public class UserCenterFeignClientFallback implements UserCenterFeignClient {

    @Override
    public UserDTO findById(Integer userId) {
        UserDTO userDTO = new UserDTO();
        log.warn(userDTO.toString());
        userDTO.setWxNickname("被限流了");
        return userDTO;
    }

    @Override
    public UserDTO query(UserDTO userDTO) {
        return null;
    }

    @Override
    public void addBonus1(UserAddBonusDTO userAddBonusDTO) {

    }
}
